![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
material-components-web
Advanced tools
Modular and customizable Material Design UI components for the web
This package contains the master library for Material Components Web. It simply wraps all of its sibling packages up into one comprehensive library for convenience.
npm install --save material-components-web
@import "material-components-web/material-components-web";
import * as mdc from 'material-components-web';
const checkbox = new mdc.checkbox.MDCCheckbox(document.querySelector('.mdc-checkbox'));
// OR
import { checkbox } from 'material-components-web';
const checkbox = new checkbox.MDCCheckbox(document.querySelector('.mdc-checkbox'));
NOTE: Built CSS files as well as UMD JS bundles will be available as part of the package post-alpha.
The material-components-web
package automatically registers all MDC-Web components with
mdc-auto-init, making it dead simple to create and initialize components
with zero configuration or manual work.
For example, say you want to use an icon toggle. Simply render the necessary
DOM, an attach the data-mdc-auto-init="MDCIconToggle"
attribute.
<i class="mdc-icon-toggle material-icons" role="button" aria-pressed="false"
aria-label="Add to favorites" tabindex="0"
data-toggle-on='{"label": "Remove from favorites", "content": "favorite"}'
data-toggle-off='{"label": "Add to favorites", "content": "favorite_border"}'
data-mdc-auto-init="MDCIconToggle">
favorite_border
</i>
Then at the bottom of your html, insert this one-line script tag:
<script>mdc.autoInit()</script>
This will automatically initialize the icon toggle, as well as any other components marked with the auto init data attribute. See mdc-auto-init for more info.
FAQs
Modular and customizable Material Design UI components for the web
We found that material-components-web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.